<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>添加栏目</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-4">
  <h2>添加栏目</h2>
  <form th:action="@{/channel/save}" method="post">
    <div class="mb-3">
      <label for="cname" class="form-label">栏目名称</label>
      <input type="text" class="form-control" id="cname" name="cname" required>
    </div>
    <div class="mb-3">
      <label for="channelDesc" class="form-label">栏目描述</label>
      <textarea class="form-control" id="channelDesc" name="channelDesc" rows="3"></textarea>
    </div>
    <button type="submit" class="btn btn-primary">保存</button>
    <a th:href="@{/channel/list}" class="btn btn-secondary">返回</a>
  </form>
</div>
</body>
</html>